﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    enum NPCType
    {
        任务,
        商贩,
        铁匠
    }
     abstract class NPC
    {
        private string name;
        private NPCType type;
        public string Name 
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCType Type 
        {
            get { return this.type; }
            set { this.type = value; }
        }

        public NPC(string Name, NPCType Type) 
        {
            this.Name = Name;
            this.Type = Type;
        }
        public NPC() { }
        //public void Talk() 
        //{
        //    Console.WriteLine("尊敬勇者，你终于来了。");
        //}
        public abstract void SB();
    }
}
